package com.tbfs.security;

import org.acegisecurity.GrantedAuthority;
import org.acegisecurity.userdetails.User;

public class UserDetailsImpl  extends User implements IUserDetails {
	



	public UserDetailsImpl(String username, String password, boolean enabled,
			boolean accountNonExpired, boolean credentialsNonExpired,
			boolean accountNonLocked, GrantedAuthority[] authorities)
			throws IllegalArgumentException {
		super(username, password, enabled, accountNonExpired, credentialsNonExpired,
				accountNonLocked, authorities);
		// TODO Auto-generated constructor stub
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int user_id;
	private String companyCode;
	private String companyName;
	private String username;
	private String useraccount;
	private String userpassword;
	public String getUserpassword() {
		return userpassword;
	}

	public void setUserpassword(String userpassword) {
		this.userpassword = userpassword;
	}

	private GrantedAuthority[] authorities;
	
	

	public int getUserId() {
		// TODO Auto-generated method stub
		return user_id;
	}

	public void setUserId(int user_id) {
		this.user_id = user_id;

	}

	public String getCompanyCode() {
		// TODO Auto-generated method stub
		return companyCode;
	}

	public void setCompanyCode(String companyCcode) {
		this.companyCode = companyCcode;

	}

	public String getUseraccount() {
		// TODO Auto-generated method stub
		return useraccount;
	}

	public void setUseraccount(String useraccount) {
		// TODO Auto-generated method stub
		this.useraccount = useraccount;
	}

	public String getUsername() {
		// TODO Auto-generated method stub
		return username;
	}

	public void setUsername(String username) {
		this.username = username;

	}

	public GrantedAuthority[] getAuthorities() {
		// TODO Auto-generated method stub
		return authorities;
	}

	public void setAuthorities(GrantedAuthority[] authorities) {
		this.authorities = authorities;

	}

	public String getPassword() {
		// TODO Auto-generated method stub
		return userpassword;
	}

	public boolean isAccountNonExpired() {
		// TODO Auto-generated method stub
		return true;
	}

	public boolean isAccountNonLocked() {
		// TODO Auto-generated method stub
		return true;
	}

	public boolean isCredentialsNonExpired() {
		// TODO Auto-generated method stub
		return true;
	}

	public boolean isEnabled() {
		// TODO Auto-generated method stub
		return true;
	}

	public String getCompanyName() {
		// TODO Auto-generated method stub
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
		
	}


}
